<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EditAvatar.ascx.cs" Inherits="forums_controls_usercp_EditAvatar" %>
<asp:MultiView ID="mviewAvatar" runat="server">
    <asp:View ID="viewAvatar" runat="server">
        <asp:Panel runat="server" ID="pnlAvatar" DefaultButton="btnUpload" Width="100%">
            <fieldset>
                <legend>Edit Avatar</legend>
                <table width="100%">
                    <tr>
                        <td width="120" valign="top">
                            <asp:MultiView runat="server" ID="mviewCurrentAvatar">
                                <asp:View runat="server" ID="viewCurrentAvatar">
                                    <p>
                                        <asp:Image runat="server" ID="imgAvatar" />
                                    </p>
                                    <p>
                                        <asp:LinkButton runat="server" ID="btnDelete" Text="Delete Avatar" OnClick="btnDelete_Click" />
                                    </p>
                                </asp:View>
                                <asp:View runat="server" ID="viewNoAvatar">
                                    <p>
                                        No avatar.
                                    </p>
                                </asp:View>
                            </asp:MultiView>
                        </td>
                        <td valign="top">
                            <p>
                                Your avatar can be up to 100 x 100 pixels, and up to 25 kb in size.
                            </p>
                            <p>
                                Upload an a new avatar from your computer:<br />
                                <asp:FileUpload runat="server" ID="uploadAvatar" Width="478px" />&nbsp;
                            </p>
                            <p>
                                Upload an image from the interweb:<br />
                                Url: <asp:TextBox runat="server" ID="txtUrl" Width="364px" />&nbsp;</p>
                            <p>
                                <asp:Button runat="server" ID="btnUpload" Text='Upload' OnClick="btnUpload_Click" />&nbsp;</p>
                            <p>
                                <asp:Label ID="lblMsg" runat="server" EnableViewState="False"></asp:Label>&nbsp;</p>
                        </td>
                    </tr>
                </table>
            </fieldset>
        </asp:Panel>
    </asp:View>
    <asp:View ID="viewError" runat="server">
        User not found.</asp:View>
</asp:MultiView>
